package com.auxgroup.hr.front.dao.domain;

import java.io.Serializable;

import javax.persistence.*;

import org.apache.commons.lang.builder.ToStringBuilder;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the PS_C_WF_APT_WORK database table.
 * 
 */
@Entity
@Table(name="PS_C_WF_APT_WORK")
@NamedQuery(name="PsCWfAptWork.findAll", query="SELECT p FROM PsCWfAptWork p")
@IdClass(PsCWfAptPrimary.class)
public class PsCWfAptWork implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="C_APPLICANT_ID")
	private String cApplicantId;

	@Id
	@Column(name="C_TRANSACTION_NBR")
	private String cTransactionNbr;

	@Column(name="COMPANY_DESCR")
	private String companyDescr;//公司名称

	@Temporal(TemporalType.DATE)
	@Column(name="END_DATE")
	private Date endDate;//结束日期

	@Column(name="POSITION_DESCR")
	private String positionDescr;//岗位

	@Id
	private BigDecimal seqnbr;

	@Temporal(TemporalType.DATE)
	@Column(name="START_DATE")
	private Date startDate;//开始日期

	public PsCWfAptWork() {
	}

	public String getcApplicantId() {
		return cApplicantId;
	}

	public void setcApplicantId(String cApplicantId) {
		this.cApplicantId = cApplicantId;
	}

	public String getcTransactionNbr() {
		return cTransactionNbr;
	}

	public void setcTransactionNbr(String cTransactionNbr) {
		this.cTransactionNbr = cTransactionNbr;
	}

	public String getCompanyDescr() {
		return companyDescr;
	}

	public void setCompanyDescr(String companyDescr) {
		this.companyDescr = companyDescr;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getPositionDescr() {
		return positionDescr;
	}

	public void setPositionDescr(String positionDescr) {
		this.positionDescr = positionDescr;
	}

	public BigDecimal getSeqnbr() {
		return seqnbr;
	}

	public void setSeqnbr(BigDecimal seqnbr) {
		this.seqnbr = seqnbr;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}